package xyz.bali16.module.invitecode.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.bali16.module.invitecode.entity.InviteCode;
import xyz.bali16.module.invitecode.model.invitecode.InviteCodeAddParam;
import xyz.bali16.module.invitecode.model.invitecode.InviteCodePageParam;
import xyz.bali16.module.invitecode.model.invitecode.InviteCodeUpdateParam;

/**
 * @author bali2 on 9/3/2023.
 * @version 1.0
 */
public interface InviteCodeService extends IService<InviteCode> {

    IPage<InviteCode> getPage(InviteCodePageParam param);
    void addInviteCode(InviteCodeAddParam param) throws Exception;
    void updateInviteCode(InviteCodeUpdateParam param) throws Exception;
    void delete(String inviteCodeId) throws Exception;

}
